package com.neusoft.courseSelect.controller;

import com.neusoft.courseSelect.domain.RespForecast;
import com.neusoft.courseSelect.service.IForcast;
import com.neusoft.data.domain.SerForecast;
import com.neusoft.data.service.ISerForecastService;
import com.neusoft.recommend.domain.CourseRecommend;
import com.neusoft.recommend.service.ICourseRecommendService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/forecast")
public class forecastController extends BaseController {

    @Autowired
    ISerForecastService serForecastService;

    @Autowired
    IForcast forcast;

    @Autowired
    ICourseRecommendService courseRecommendService;


    @ApiOperation("获取预测信息")
    @GetMapping("/list")
    public List<CourseRecommend> Forcast(String stuId) {

        CourseRecommend recommend = new CourseRecommend();
        recommend.setStudentId(stuId);
        List<CourseRecommend> list = courseRecommendService.selectCourseRecommendList(recommend);

        if (!list.isEmpty()) {
            return list;
        }


        return null;
    }

}
